var student={
	name:'zhangsan',
	age:18,
	gender:'male',
	sayHi:function(){
		console.log('hi,my name is '+this.name);
	}
}

var student2=new Object()
student2.name='lisi';
student2.age=17;
student2.gender='male';
student2.sayHi=student.sayHi;

function createStudent(name,age,gender){
	var student={};
	student.name=name;
	student.age=age;
	student.gender=gender;
	student.sayHi=function(){
		console.log('hi,my name is '+this.name);
	};
	return student;
}
var student3=createStudent('wangwu',18,'male');

function Student(name,age,gender){
	this.name=name;
	this.age=age;
	this.gender=gender;
	this.sayHi=function(){
		console.log('hi,my name is '+this.name);
	};
}
var student4=new Student('maliu',19,'male');

for(var key in student){
	console.log(key);
	console.log(student[key]);
}

console.log(student.name);
delete student.name;
console.log(student.name);

var student5=Object.create(student4);
console.log(student5==student4);
